import React, { useState, useEffect } from 'react';
import ReactDOM from 'react-dom';
import { Link, useHistory } from 'react-router-dom'
import { Layout, Menu, Breadcrumb, Row, Col, Button, Tabs, Space, message } from 'antd';
import { UserOutlined, LaptopOutlined, NotificationOutlined } from '@ant-design/icons';
import { checkAdmin } from '../../utils/loginUtils/loginMethod'
import AdminCenter from './adminCenter'
export default () => {
    const history = useHistory()
    if (!checkAdmin()) {
        message.error('请使用管理员账号登录')
        history.push('/user')
    }
    return (
        <AdminCenter />
    )
}


